package com.ag.zhh.action;

import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ag.bean.TbOaContact;
import com.ag.common.BaseAction;
import com.ag.dao.TbDetailShiftDAO;
import com.ag.zhh.service.OAContactService;

public class OaContactAction extends BaseAction {
	private static final Log log = LogFactory.getLog(OaContactAction.class);
	@Resource(name = "OAContactService")
	private OAContactService oaContactService;

	private List<TbOaContact> oaContactlist;

	private String page;
	
	
	public String findAllOaContact() {
		oaContactlist = oaContactService.findAll();
		log.info("list.size----"+oaContactlist.size());
		if ("maintain".equals(page)) {
			return "maintainOaContact";
		} else {
			return "findAllOaContact";
		}
	}

	public List<TbOaContact> getOaContactlist() {
		return oaContactlist;
	}

	public void setOaContactlist(List<TbOaContact> oaContactlist) {
		this.oaContactlist = oaContactlist;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}
	

}
